<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponProductChannelAddButt extends Migrator
{
    public function up()
    {
        $this->table('coupon_product_channel')
            ->addColumn('butt', 'boolean', ['limit' => 1, 'default' => '0', 'comment' => '与供应商是否对接'])
            ->update();
    }

    public function down()
    {
        $this->table('coupon_product_channel')->removeColumn('butt');
    }
}
